Woocommerce\Pagarme\Concrete\WoocommercePlatformOrderDecorator D

Total Complexity 155
Dependencies 32
Dependents 1
Total lines 1,084
Lines of code 701
Logical lines of code 391
Comment lines 75
Methods 73
Properties 4

Methods 73

Method Rating Maintainability Complexity Lines of code
extractPaymentDataFromTwoCreditCards()
A
44 10 44
extractPaymentDataFromBilletCreditcard()
A
42 9 56
getPaymentHandler()
A
54 8 23
extractPaymentDataFromVoucher()
S
48 6 32
extractBasePaymentData()
S
49 6 30
extractMultibuyerData()
S
47 5 36
getItemCollection()
S
50 5 28
extractPaymentDataFromBillet()
S
56 5 18
validateAddressFields()
S
53 4 23
extractPaymentDataFromPix()
S
57 4 17
setStatusAfterLog()
S
58 4 15
getPaymentMethodCollection()
S
53 3 24
getRegisteredCustomer()
S
48 2 35
isBilletAndCreditCardPayment()
S
69 4 6
isSandboxMode()
S
75 4 3
getPagarmeId()
S
64 3 11
getState()
S
57 2 17
getCustomer()
S
64 3 10
getGuestCustomer()
S
50 1 30
getShipping()
S
58 1 16
isBilletPayment()
S
68 2 7
formatPaymentMethod()
S
65 2 9
getWoocommerceStatusFromCoreStatus()
S
67 2 8
extractPaymentDataFromPagarmeDebit()
S
67 2 8
isTwoCreditCardPayment()
S
70 2 6
getCoreStatusFromWoocommerceStatus()
S
67 2 8
isCreditCardPayment()
S
68 2 7
isPixPayment()
S
68 2 7
getTotalDue()
S
75 2 4
getTotalPaid()
S
75 2 4
isVoucherPayment()
S
68 2 7
extractPaymentDataFromCreditCard()
S
67 2 8
extractPaymentDataFromPagarmeVoucher()
S
67 2 8
getAddress()
S
60 1 13
getQuote()
S
82 1 3
getRecurrenceService()
S
81 1 3
setRecurrenceInfo()
S
82 1 3
getTransactionCollection()
S
82 1 3
getPaymentCollection()
S
82 1 3
__construct()
S
69 1 7
isCanceled()
S
80 1 3
getData()
S
81 1 3
getGrandTotal()
S
81 1 3
save()
S
82 1 3
setStateAfterLog()
S
82 1 3
getStatus()
S
73 1 5
loadByIncrementId()
S
76 1 4
sendEmail()
S
82 1 3
getStatusLabel()
S
80 1 3
addMPHistoryComment()
S
81 1 3
setAdditionalInformation()
S
82 1 3
extractAdditionalChargeInformation()
S
82 1 3
addAdditionalInformation()
S
82 1 3
setIsCustomerNotified()
S
91 1 2
canInvoice()
S
82 1 3
getIncrementId()
S
81 1 3
getBaseTaxAmount()
S
81 1 3
getHistoryCommentCollection()
S
81 1 3
setTotalPaid()
S
82 1 3
setBaseTotalPaid()
S
82 1 3
setTotalDue()
S
82 1 3
setBaseTotalDue()
S
82 1 3
setTotalCanceled()
S
82 1 3
setBaseTotalCanceled()
S
82 1 3
getTotalRefunded()
S
81 1 3
setTotalRefunded()
S
82 1 3
setBaseTotalRefunded()
S
82 1 3
getCode()
S
81 1 3
canUnhold()
S
82 1 3
isPaymentReview()
S
82 1 3
getPaymentMethodPlatform()
S
82 1 3
getInvoiceCollection()
S
82 1 3
getTotalCanceled()
S
81 1 3